package com.web.ShoppingDemo.serviceImpl;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.web.ShoppingDemo.model.User;
import com.web.ShoppingDemo.service.UserService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath:applicationContext-*.xml")
public class UserServiceImplTest {
	@Resource
	private UserService userService;

	@Test
	public void testLogin() {
		User user = new User("user", "user");
		System.out.println(userService.getLogin(user));
	}

}
